import React, { Component } from 'react';
import store from '../../store'

class My extends Component {
  constructor(props) {
    super(props);
    const { history } = props
    const isLogin = store.getState().getIn(['userReducer', 'isLogin']);
    if (!isLogin) {
      history.push('/login')
    }
  }
  render() {
    return (
      <div>
        My
      </div>
    );
  }
}

export default My;
